package com.think.archive.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.think.archive.dto.SysRoleDto;
import com.think.archive.dto.SysUserDto;
import com.think.archive.model.SysFunc;
import com.think.archive.model.SysRole;
import com.think.archive.model.SysUser;

import java.util.HashMap;
import java.util.List;

public interface SysRoleService {

    SysRole select(int id) ;

    SysRole selectByRoleCode(String roleCode) ;

    List<SysRoleDto> selectAllRole();

    int insertOrUpdateRole(SysRole role);

    int deleteRole(int id);

    int changeStatusRole(int id ,String status);

    List<SysFunc> roleFunc(String roleCode);

    SysRoleDto transUserToDto(SysRole role);

    List<SysRoleDto> transUserToDtos(List<SysRole> roles);

    JSONArray findRoleTree(String roleCode);

    List<SysRole> findNextLevelRole(String roleCode);

    List<SysRoleDto> findNextLevelRoleDto(String roleCode);

}
